
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="MOBAN">

<meta name="description" content="">
<meta name="keywords" content="bootstrap, bootstrap5">
<link rel="preconnect" href="https://fonts.googleapis.com/">
<link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin="">
<link href="static/css/css2.css" rel="stylesheet">
<link rel="stylesheet" href="static/css/style.css">
<link rel="stylesheet" href="static/css/flaticon.css">
<link rel="stylesheet" href="static/css/bootstrap-icons.css">
<link rel="stylesheet" href="static/css/tiny-slider.css">
<link rel="stylesheet" href="static/css/aos.css">
<link rel="stylesheet" href="static/css/glightbox.min.css">
<link rel="stylesheet" href="static/css/style1.css">
<link rel="stylesheet" href="static/css/flatpickr.min.css">
<link rel="short icon" href="images/28.jpg">
<title>知文招标网 - 法律法规</title>
</head>
<body>
	<div class="site-mobile-menu site-navbar-target">
		<div class="site-mobile-menu-header">
			<div class="site-mobile-menu-close">
				<span class="icofont-close js-menu-toggle"></span>
			</div>
		</div>
		<div class="site-mobile-menu-body"></div>
	</div>
	<nav class="site-nav">
		<div class="container" id="chw">
			<div class="menu-bg-wrap">
				<div class="site-navigation">
					<div class="row g-0 align-items-center">
						<div class="col-2">
							<a href="index.html" class="logo m-0 float-start">知文项目管理<span
								class="text-primary">.</span></a>
						</div>
						<div class="col-8 text-center">
							<ul
									class="js-clone-nav d-none d-lg-inline-block text-start site-menu mx-auto">
								<li class="active"><a href="index.html">首页</a></li>

								<li class="allPost has-children">
									<a href="blog.html">项目公告</a>
									<ul class="dropdown">
										<li><a href="searchType.html?type=1">招标公告</a></li>
										<li><a href="searchType.html?type=2">中标公告</a></li>
										<li><a href="searchType.html?type=3">其他公告</a></li>
									</ul>
								</li>
								<li><a href="category.html">公司新闻</a></li>
								<li><a href="laws.html">法律法规</a></li>
								<li><a href="about.html">关于我们</a></li>
							</ul>
						</div>
						<div class="col-2 text-end">
							<a href="#"
								class="burger ms-auto float-end site-menu-toggle js-menu-toggle d-inline-block d-lg-none light">
								<span></span>
							</a>
							<form action="" onsubmit="return false" class="search-form d-none d-lg-inline-block">
								<input type="text" class="form-control" placeholder="搜索..." id="searchContent" @keydown.enter="search">
								<span class="bi-searchs"></span>
							</form>
						</div>

					</div>
				</div>
			</div>
		</div>
	</nav>
	<div id="cbt">
		<div class="section search-result-wrap">
			<div class="container">
				<div class="row posts-entry">
					<div class="col-lg-8" style="width: 100%;">
						<div class="blog-entry d-flex blog-entry-search-item" style="width: 100%;height: 20%">
							<div v-for="(item,index) in onePagePosts.slice(0,3)" style="width: 30% !important;text-align: center">
								<h5>
									<a href="javascript:void(0)"  @click="goToCheck(item.id)">{{item.title}}</a>
								</h5>
								<span>{{item.createDate.split(" ")[0]}}</span><br>
<!--								<span style="color: green">{{item.title}}</span>-->
							</div>
						</div>
						<div class="blog-entry d-flex blog-entry-search-item" style="width: 100%;height: 20%">
							<div v-for="(item,index) in onePagePosts.slice(3,6)" style="width: 30% !important;text-align: center">
								<h5>
									<a href="javascript:void(0)"  @click="goToCheck(item.id)">{{item.title}}</a>
								</h5>
								<span>{{item.createDate.split(" ")[0]}}</span><br>
								<!--								<span style="color: green">{{item.title}}</span>-->
							</div>
						</div>
						<div class="blog-entry d-flex blog-entry-search-item" style="width: 100%;height: 20%">
							<div v-for="(item,index) in onePagePosts.slice(6,9)" style="width: 30% !important;text-align: center">
								<h5>
									<a href="javascript:void(0)"  @click="goToCheck(item.id)">{{item.title}}</a>
								</h5>
								<span>{{item.createDate.split(" ")[0]}}</span><br>
								<!--								<span style="color: green">{{item.title}}</span>-->
							</div>
						</div>
						<div class="blog-entry d-flex blog-entry-search-item" style="width: 100%;">
							<div v-for="(item,index) in onePagePosts.slice(9,12)" style="width: 30% !important;text-align: center">
								<h5>
									<a href="javascript:void(0)"  @click="goToCheck(item.id)">{{item.title}}</a>
								</h5>
								<span>{{item.createDate.split(" ")[0]}}</span><br>
								<!--								<span style="color: green">{{item.title}}</span>-->
							</div>
						</div>
						<div class="row text-start pt-5 border-top">
							<div class="col-md-12">
								<div class="custom-pagination"  style="text-align: center">
									<a href="javascript:void(0)" @click="toTopPage(1)">首</a>
									<a href="javascript:void(0)" v-if="nowPage - 1 >= 1" @click="pagings(-1)">{{nowPage - 1}}</a>
									<a href="javascript:void(0)" style="background-color: darkgreen">{{nowPage}}</a>
									<a href="javascript:void(0)" v-if="nowPage + 1 <= page" @click="pagings(1)">{{nowPage + 1}}</a>
									<a href="javascript:void(0)" @click="toTopPage(-1)">尾</a>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div id="overlayer"></div>
	<div class="loader">
		<div class="spinner-border text-primary" role="status">
			<span class="visually-hidden">Loading...</span>
		</div>
	</div>
	<script src="static/js/bootstrap.bundle.min.js"
		type="769774d6b8e01bb7d5857d09-text/javascript"></script>
	<script src="static/js/tiny-slider.js"
		type="769774d6b8e01bb7d5857d09-text/javascript"></script>
	<script src="static/js/flatpickr.min.js"
		type="769774d6b8e01bb7d5857d09-text/javascript"></script>
	<script src="static/js/aos.js"
		type="769774d6b8e01bb7d5857d09-text/javascript"></script>
	<script src="static/js/glightbox.min.js"
		type="769774d6b8e01bb7d5857d09-text/javascript"></script>
	<script src="static/js/navbar.js"
		type="769774d6b8e01bb7d5857d09-text/javascript"></script>
	<script src="static/js/counter.js"
		type="769774d6b8e01bb7d5857d09-text/javascript"></script>
	<script src="static/js/custom.js"
		type="769774d6b8e01bb7d5857d09-text/javascript"></script>
	<script async="" src="static/js/js.js"
		type="769774d6b8e01bb7d5857d09-text/javascript"></script>
	<script type="769774d6b8e01bb7d5857d09-text/javascript">window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag("js", new Date()); gtag("config", "UA-166033648-1");</script>
	<script src="static/js/rocket-loader.min.js"
		data-cf-settings="769774d6b8e01bb7d5857d09-|49" defer=""></script>

	<script src="js/jquery-3.6.0.js"></script>
	<script src="js/vue.js"></script>
	<script src="js/axios.min.js"></script>
	<script src="js/checkLogin.js"></script>

	<script>
	   let cbw = new Vue({
		   el:'#cbt',
		   data:{
			   types:[],
			   onePageTypes:[],
			   tops:[],
			   page:0,
			   limit:12,
			   post:[],
			   nowPage:1,
			   onePagePosts:[]
		   },
		   methods:{
			  finds(){
				  let params = new URLSearchParams();
				  return axios.get("../../../type/finds",params);
			  },
			  goToCheck(id){
				   //sessionStorage.setItem("id",id);
				   window.open("single.html?" + id);
			   },
			  getTopThree(){
				  let params = new URLSearchParams();
				  return axios.get("../../../type/getTopThree",params);
			  },
			  searchTypes(tno,tname){
				  sessionStorage.setItem("tname",tname)
				  location.href="searchType.html?type=" + tno;
			  },
			  paging(page){
				  this.onePageTypes = this.types.slice(this.limit*(page-1),this.limit*page);
			  },
			  pagings(count){
				   if(count == 1){
					   if(this.nowPage + 1 <= this.page){
						   this.nowPage = this.nowPage + 1;
						   this.onePagePosts = this.posts.slice(this.limit*(this.nowPage-1),this.limit* this.nowPage);
					   }
				   }else if(count == -1){
					   if(this.nowPage - 1 >= 1){
						   this.nowPage = this.nowPage - 1;
						   this.onePagePosts = this.posts.slice(this.limit*(this.nowPage-1),this.limit* this.nowPage);
					   }
				   }

			   },
			   toTopPage(count){
				   if(count == 1){
					   this.nowPage = 1;
					   this.onePagePosts = this.posts.slice(this.limit*(this.nowPage-1),this.limit* this.nowPage);
				   }else if(count == -1){
					   this.nowPage = this.page;
					   this.onePagePosts = this.posts.slice(this.limit*(this.nowPage-1),this.limit* this.nowPage);
				   }
			   }
		   },
		   mounted:function(){
			   let params = new URLSearchParams();
			   params.append("tno",4)
			   axios.get("/tender/findByType",{params}).then(resp=>{
				   console.log(resp)
				   this.posts = resp.data.data;
				   this.page = resp.data.data.length % this.limit > 0 ? this.page = parseInt(resp.data.data.length / this.limit) + 1 : this.page = resp.data.data.length / this.limit;
				   this.onePagePosts = resp.data.data.slice(0,this.limit);
			   })

			   // let types = [{tno:1,tname:"招标公告",addr:"zhaobiao.png"},{tno:2,tname:"中标公示",addr:"zhongbiao.jpg"},{tno:3,tname:"其他公告",addr:"otherGG.png"}]
			   // this.types = types
			   // this.onePageTypes = types

		   }
	   })
	  
	</script>

</body>
</html>
